home *** CD-ROM | disk | FTP | other *** search
- regc4f( 7, %ambient_r, %ambient_g, %ambient_b, %ambient_a )
- pshader("
-
- ;#include <consts.psh>
- ps_1_1
-
- ;def c7, AMBIENT
-
- tex t0 ;reflection
- tex t1 ;Terrain color
- tex t2 ;clouds
-
- mul r0, t1.a, 1-t2.a ;terrain lightmap * clouds shadow = static lighting
-
- mad_sat r0, r0, c7, c7.a ;static lighting + ambient = set lighting
-
- mul r0, r0, t0 ;reflection * set lighting
-
-
- ")
-
-